package cn.simon.free.redis.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * redisson 配置
 *
 * @author simon
 * @date 2020/11/18 13:41
 * @copyright:
 * @modifier
 * @motto a no talent, people who have to study hard
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "redisson")
public class RedissonProperties {
    /**
     * 地址
     */
    private String address;
    /**
     * 密码
     */
    private String password;
    /**
     * 数据库
     */
    private int database = 0;
    /**
     * 链接超时
     */
    private int timeout = 3000;

}
